package com.monkey.tensquare.spit.service;

import com.monkey.tensquare.spit.entity.Spit;
import entity.PageResult;

import java.util.List;

public interface SpitService {
    void add(Spit spit);

    List<Spit> findAll();

    Spit findById(String spitId);

    void update(String spitId, Spit spit);

    void delete(String spitId);

    boolean thumbup(String spitId);

    PageResult<Spit> comment(String parentid, Integer page, Integer size);

    PageResult<Spit> search(Spit spit, Integer page, Integer size);
}
